package com.wwmz.spring.simple.annotation.configures.component;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * Created by wumz on 2020/9/27 10:58
 */
@Configuration
@ComponentScan(value = "com.wwmz.spring.simple.project",
//        includeFilters = {@Filter(type = FilterType.ANNOTATION,value = {Component.class})},
        includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,value = {Controller.class})},
        useDefaultFilters = false)
public class MyConfig {

}
